package com.junko.admin.resolver;

import org.apache.commons.lang3.StringUtils;
import org.springframework.web.multipart.commons.CommonsMultipartResolver;

import javax.servlet.http.HttpServletRequest;

public class UEditorMultipartResolver extends CommonsMultipartResolver {
    @Override
    public boolean isMultipart(HttpServletRequest request) {
        String uri = request.getRequestURI();
        if (StringUtils.indexOf(uri, "ued/config") > 0) {
            return false;
        }
        return super.isMultipart(request);
    }
}
